package com.qf.homework.controller;

import com.qf.homework.entity.Body;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.LinkedHashMap;
import java.util.Map;

@Controller
@RequestMapping
@ResponseBody
public class RequestTestController {
    private static final Map<String, Object> map = new LinkedHashMap<>();

    @RequestMapping("/analyze")
    public Map<String, Object> getAllRequest(@RequestParam Map<String, String> name, @RequestHeader Map<String, String> headers, @RequestBody Body body) {
        map.put("param", name);
        map.put("headers", headers);
        map.put("body", body);
        return map;
    }
}
